<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/2/21
 * Time: 18:39
 */

namespace app\index\model;


use think\Model;

class User extends Model
{
    protected $table = 'sn_user';

    protected function getStatusAttr($value)
    {
        $status = [ 1 => '启用', 2 => '禁用'];
        return $status[$value];
    }

}